<extend name="Base/base" />
<block name='head'>
    <link rel="stylesheet" href="/Public/Admin/css/personal.css"/>
    <style>
        @font-face {
            font-family: 'iconfont';  /* project id 645562 */
            src: url('//at.alicdn.com/t/font_645562_i6k1q02gdl6m9529.eot');
            src: url('//at.alicdn.com/t/font_645562_i6k1q02gdl6m9529.eot?#iefix') format('embedded-opentype'),
                url('//at.alicdn.com/t/font_645562_i6k1q02gdl6m9529.woff') format('woff'),
                url('//at.alicdn.com/t/font_645562_i6k1q02gdl6m9529.ttf') format('truetype'),
                url('//at.alicdn.com/t/font_645562_i6k1q02gdl6m9529.svg#iconfont') format('svg');
        }

        .plan_nr{margin-left:5px}
        .plan_nr{position: relative}
        .readFlag{width:6px;height:6px;border-radius: 50%;background: #F74339;display: inline-block;position: absolute;top:17px;left:6px}
        .page .next, .prev, .first{color:#333;}
        .page .current,.page .next:hover,.page .num:hover{border:1px solid #2299ee;}
        .page .num,.current{margin-left:4px;}
        .prev{margin-right: -3px;}
        #page{padding-top: 10px;}
        .width8{width: 8%}
    </style>
</block>
<block name="content" > 
    <section class="layui-larry-box">
        <div class="larry-personal">
            <div class="layui-tab">
                <blockquote class="layui-elem-quote news_search">
                    <form method="get">
                        <div class="layui-input-inline">
                            <a class="layui-btn search_btn addFlowCate" data-ctrl="form" style="margin-left:10px;"> 添加表单分类</a>
                            <a class="layui-btn search_btn addFlowCate" data-ctrl="flow" style="margin-left:10px;"> 添加流程分类</a>
                        </div>
                    </form>
                </blockquote>
                <div class="layui-tab-content larry-personal-body clearfix mylog-info-box">
                    <!-- 分类列表 -->
                    <div class="layui-tab-item layui-field-box layui-show">
                        <p style="font-weight:bold;font-size: 16px;margin:10px 0">流程分类列表</p>
                        <table class="layui-table table-hover" lay-even="" lay-skin="nob">
                            <thead>
                                <tr>
                                    <th>序号</th>
                                    <th>分类名称</th>
                                    <th>分类排序</th>
                                    <th>所属部门</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                            <notempty name="flowCates">
                                <foreach name="flowCates" item="row" key="key">
                                    <td style="width:100px">{$row.sort_id}</td>
                                    <td>{$row.sort_name}</td>
                                    <td>{$row.sort_no}</td>
                                    <td>{$row.dept_id|getDeptName}</td>
                                    <td>
                                        <a class="addFlowCate pointer" data-ctrl="flow" data-id="{$row.sort_id}">编辑</a>
                                        <a class="delCate pointer" data-url="{:U('delCate',array('id'=>$row['sort_id'],'ctrl'=>'flow'))}">删除</a>
                                    </td>
                                    </tr>
                                </foreach>
                                <else/>
                                <tr><td colspan="5" style="border-bottom: 1px solid #fff;border-left: 1px solid #fff;text-align: left">暂无数据</td></tr>
                            </notempty>
                            </tbody>
                        </table>
                        <div class="layui-block">共{$flowCount}条数据</div>
                    </div>

                    <!-- 标签列表 -->
                    <div class="layui-tab-item layui-field-box layui-show">
                        <p style="font-weight:bold;font-size: 16px;margin:20px 0 10px 0">表单分类列表</p>
                        <table class="layui-table table-hover" lay-even="" lay-skin="nob">
                            <thead>
                                <tr>
                                    <th>序号</th>
                                    <th>分类名称</th>
                                    <th>分类排序</th>
                                    <th>所属部门</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                            <notempty name="formCates">
                                <foreach name="formCates" item="row" key="key">
                                    <td style="width:100px">{$row.sort_id}</td>
                                    <td>{$row.sort_name}</td>
                                    <td>{$row.sort_no}</td>
                                    <td>{$row.dept_id|getDeptName}</td>
                                    <td>
                                        <a class="addFlowCate pointer" data-ctrl="form" data-id="{$row.sort_id}">编辑</a>
                                        <a class="delCate pointer" data-url="{:U('delCate',array('id'=>$row['sort_id'],'ctrl'=>'form'))}">删除</a>
                                    </td>
                                    </tr>
                                </foreach>
                                <else/>
                                <tr><td colspan="5" style="border-bottom: 1px solid #fff;border-left: 1px solid #fff;text-align: left">暂无数据</td></tr>
                            </notempty>
                            </tbody>
                        </table>
                        <div class="layui-block">共{$formCount}条数据</div>
                        <div class="larry-table-page clearfix">
                            <div id="page" class="page">{$page}</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
</block>
<block name="script">
    <script type="text/javascript" src="/Public/Admin/js/common.js" ></script>
    <script type="text/javascript">
        $(initAddCate());

    </script>    
</block>

